package com.gidgabs.dto;

import com.gidgabs.modules.entity.TbButlerOrderEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("跑腿购物车数据对象")
public class TbButlerOrderDto {

    //
    @ApiModelProperty(value = "id",hidden = true)
    private Integer id;
    //订单编码
    @ApiModelProperty("订单编码")
    private String orderCode;
    //用户编码
    @ApiModelProperty("用户编码")
    private Integer userId;
    //取件地址
    @ApiModelProperty("取件地址")
    private String pickupLocation;
    //交付地址
    @ApiModelProperty("交付地址")
    private String deliveryPosition;
    //取件时间
    @ApiModelProperty("取件时间")
    private Date pickupTime;
    //类型
    @ApiModelProperty("类型")
    private Integer type;
    //重量
    @ApiModelProperty("重量")
    private String weight;
    //开始时间
    @ApiModelProperty("开始时间")
    private Date pickUpNow;
    //小费 单位 分
    @ApiModelProperty("小费 单位 分")
    private Integer tip;
    //注意提示
    @ApiModelProperty("注意提示")
    private String note;
    //描述
    @ApiModelProperty("描述")
    private String helpMe;
    //订单金额 单位 分
    @ApiModelProperty("订单金额 单位 分")
    private Integer orderPrice;
    //订单状态 0 等待支付 1 等待接单 2 进行中 3 完成
    @ApiModelProperty("订单状态 0 等待支付 1 等待接单 2 进行中 3 完成")
    private Integer orderStatus;
    //创建时间
    @ApiModelProperty("创建时间")
    private Date createTime;
    //订单显示状态 0 未删除 1已删除
    @ApiModelProperty("订单显示状态 0 未删除 1已删除")
    private Integer deleteType;
    //订单来源用户id
    @ApiModelProperty("订单来源用户id")
    private Integer sourceUserId;
    //更新时间 用于订单状态更新时间
    @ApiModelProperty("更新时间 用于订单状态更新时间")
    private Date updateTime;
    //昵称
    @ApiModelProperty("昵称")
    private String userName;
    //头像地址/也是公司logo
    @ApiModelProperty("头像地址/也是公司logo")
    private String headImgUrl;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPickupLocation() {
        return pickupLocation;
    }

    public void setPickupLocation(String pickupLocation) {
        this.pickupLocation = pickupLocation;
    }

    public String getDeliveryPosition() {
        return deliveryPosition;
    }

    public void setDeliveryPosition(String deliveryPosition) {
        this.deliveryPosition = deliveryPosition;
    }

    public Date getPickupTime() {
        return pickupTime;
    }

    public void setPickupTime(Date pickupTime) {
        this.pickupTime = pickupTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public Date getPickUpNow() {
        return pickUpNow;
    }

    public void setPickUpNow(Date pickUpNow) {
        this.pickUpNow = pickUpNow;
    }

    public Integer getTip() {
        return tip;
    }

    public void setTip(Integer tip) {
        this.tip = tip;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getHelpMe() {
        return helpMe;
    }

    public void setHelpMe(String helpMe) {
        this.helpMe = helpMe;
    }

    public Integer getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Integer orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDeleteType() {
        return deleteType;
    }

    public void setDeleteType(Integer deleteType) {
        this.deleteType = deleteType;
    }

    public Integer getSourceUserId() {
        return sourceUserId;
    }

    public void setSourceUserId(Integer sourceUserId) {
        this.sourceUserId = sourceUserId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public TbButlerOrderEntity toEntity(){
        TbButlerOrderEntity tbbutlerorderentity=new TbButlerOrderEntity();
        tbbutlerorderentity.setSourceUserId(this.getSourceUserId());
        tbbutlerorderentity.setPickupLocation(this.getPickupLocation());
        tbbutlerorderentity.setDeliveryPosition(this.getDeliveryPosition());
        tbbutlerorderentity.setUpdateTime(this.getUpdateTime());
        tbbutlerorderentity.setId(this.getId());
        tbbutlerorderentity.setOrderCode(this.getOrderCode());
        tbbutlerorderentity.setUserId(this.getUserId());
        tbbutlerorderentity.setPickupTime(this.getPickupTime());
        tbbutlerorderentity.setType(this.getType());
        tbbutlerorderentity.setWeight(this.getWeight());
        tbbutlerorderentity.setPickUpNow(this.getPickUpNow());
        tbbutlerorderentity.setTip(this.getTip());
        tbbutlerorderentity.setNote(this.getNote());
        tbbutlerorderentity.setHelpMe(this.getHelpMe());
        tbbutlerorderentity.setOrderPrice(this.getOrderPrice());
        tbbutlerorderentity.setOrderStatus(this.getOrderStatus());
        tbbutlerorderentity.setCreateTime(this.getCreateTime());
        tbbutlerorderentity.setDeleteType(this.getDeleteType());
        return tbbutlerorderentity;
    }
}
